home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / pgetgid.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Pgetuid(2)                Oct. 1, 1991                 Pgetuid(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Pgetuid, Pgetgid - get the current user or group id
  7.  
  8. SYNOPSIS
  9.      WORD Pgetuid();
  10.      WORD Pgetgid();
  11.  
  12. DESCRIPTION
  13.      Pgetuid returns the user id of the  currently  running  pro-
  14.      cess.  This  is  a number between 0 and 255 which determines
  15.      the access permissions of the process, and which may be used
  16.      in  multi-user systems to distinguish different users of the
  17.      system.
  18.  
  19.      Similarly, Pgetgid returns the group  id  of  the  currently
  20.      running  process;  this  will also be a number between 0 and
  21.      255.
  22.  
  23. SEE ALSO
  24.      Psetuid(2)
  25.  
  26. BUGS
  27.      The real user (or group) id is always returned.  The  kernel
  28.      also  has  a  notion  of  the  effective user (group) id for
  29.      setuid (setgid) programs, but no function returns the latter
  30.      value.
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.